package db

import (
	"gitee.com/ling1314/origin-utility/model"
	"gitee.com/ling1314/origin-utility/utils"
	"net"
)

type AbnormalDevice struct {
	HandsUpMsg interface{}
	Conn       net.Conn
}

type IdpCatch struct {
	CpuPer         float64
	MemoryPer      float64
	LastCpuWarn    model.CpuMsg
	LastMemoryWarn model.MemoryMsg
	LastWinSession model.WinSessionChangeMsg
	CPU            model.IdpLogCpu
	Memory         model.IdpLogMemory
	DiskPhysics    model.IdpLogDisk
	DiskLogic      model.RLogicDisk
	BoardBase      model.IdpLogBoard
	BoardMain      model.RMainBoard
	BoardBios      model.RBios
	SysAbstract    model.IdpLogSysAbstract
}

var InfoCatchMapForVa = make(map[int64]interface{})

var InfoCatchMaoForIdp = make(map[int64]IdpCatch)

var AbnormalDeviceForIdp = make(map[int64]AbnormalDevice)

// VaCacheForCpuAndMemory key 为设备ID val 中的第一个元素为CPU压力，第二个为内存压力
var VaCacheForCpuAndMemory = make(map[int64][]float64, 0)

// CacheForCookie cookie 缓存
var CacheForCookie = make(map[string]*utils.CustomClaims)
